package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.response.BaseResponse;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao on 2018/6/13.
 */

public class WebLoginRequest {
    ScanQRRequest scanQRRequest;

    private WebLoginRequest(Builder builder) {
        setScanQRRequest(builder.scanQRRequest);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public ScanQRRequest getScanQRRequest() {
        return scanQRRequest;
    }

    public void setScanQRRequest(ScanQRRequest scanQRRequest) {
        this.scanQRRequest = scanQRRequest;
    }

    public static final class Builder {
        private ScanQRRequest scanQRRequest;

        private Builder() {
        }

        public Builder scanQRRequest(ScanQRRequest val) {
            scanQRRequest = val;
            return this;
        }

            public Call<ResponseBody> build() {
        return ApiManager.getService().authByQrcode(scanQRRequest);
    }
    }



}
